/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Observer4;

/**
 *
 * @author Marcel
 */
public class ConcreteObserver implements Observer{
    
    ConcreteSubject cs;
    String state;
    
    public ConcreteObserver (ConcreteSubject cs) {
        this.cs = cs;
    }

    @Override
    public void update() {
        state = cs.getState();
        System.out.println("Recebi: "+state);
    }
    
}
